package com.lxk.utils;

public class StringUtils {
    /**
     * 转为首字母大写
     * @param field
     * @return
     */
    public static String upperCaseFirstLetter(String field){
        if(org.apache.commons.lang3.StringUtils.isEmpty(field)){
            return field;
        }

        return field.substring(0, 1).toUpperCase() + field.substring(1);
    }

    /**
     * 转为首字母小写
     * @param field
     * @return
     */
    public static String lowerCaseFirstLetter(String field){
        if(org.apache.commons.lang3.StringUtils.isEmpty(field)){
            return field;
        }

        return field.substring(0, 1).toLowerCase() + field.substring(1);
    }
}
